package com.oocl.zero.task0710.property.compare;

import java.util.Comparator;
import java.util.Date;

import com.oocl.zero.task0710.property.entity.Customer;

public class BirthdayComparator implements Comparator<Customer> {

	public int compare(Customer o1, Customer o2) {
		Date d1=new Date(o1.getBirthday());
		Date d2=new Date(o2.getBirthday());
		return d1.compareTo(d2);
	}

}
